lcBlockAddPolyline Home

Adds a new Polyline object into a block

 HANDLE lcBlockAddPolyline (
   HANDLE hBlock,
   int FitType,
   BOOL bClosed,
   BOOL bFilled
 );

Parameters
hBlock
  Handle to a block.
FitType
  Fit type. Defines how a polyline's curve fits to its vertices. Can be 0 or one of the following constants:

Value Fit type
0
LC_PLFIT_BULGE
Direct lines or arcs between vertices
LC_PLFIT_QUAD Quadratic B-spline.
LC_PLFIT_CUBIC Cubic B-spline.
LC_PLFIT_BEZIER Bezier curve
LC_PLFIT_SPLINE Cubic spline goes through vertices.
LC_PLFIT_ROUND Fillets in vertices.
LC_PLFIT_LINQUAD Combination of linear segments and quadratic B-spline segments.

bClosed
  If TRUE, then additional polyline segment will be added, it connects last and first vertices.
If FALSE, then polyline will be non-closed.
Closed polyline can be filled with color and selected by pointing to inner area.
bFilled
  If TRUE then inner area of polyline will be filled with color. This parameter is ignored for non-closed polylines.

Return Value

  Handle to created Polyline object or NULL if the function fails.

See Also

  Code sample,   lcPlineAddVer,   lcBlockAddRPolygon